
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Script-Type" content="text/javascript">
		<meta http-equiv="Content-Style-Type" content="text/css">
		<meta charset="utf-8">
		<meta name="description" content="game for iPhone">
		<meta name="keywords"
			content="iPhone,Android,iPad,game,html5 game,puzzle game,puzzle,Puzzle,flick,card,postman,post,action,Flash,Flash for iPhone,html5,iPod touch,iPad">
		<!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
		<meta name="viewport"
			content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
		<meta name="HandheldFriendly" content="true" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="no-cache">
		<meta equiv="Expires" content="0">

		<title>切了个瓜-多多智富</title>
		<link type="text/css" href='http://s10.realdtech.com/xws/house-richer/cut-melon/assets/softgames.css' rel="stylesheet">
			<link rel="stylesheet" type="text/css" href="http://s10.realdtech.com/xws/house-richer/cut-melon/assets/style.css"/>
		<style type="text/css">
<!--
body {
	-webkit-user-select: none;
	margin: 0px;
	background: #000;
}
-->
</style>
	</head>
	<body onload="startCutting();">
	<input type="hidden" name="openid" id="openid" value=#(openid??)>
		<div class="game-home">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-home.png">
			<a class="link-home" href="/wxcs?shuju=1"><img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png"></a>
			<div class="homebtns">
				<a class="rulebtn"><img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-rule.png"></a>
				<a class="start"><img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-start.png"></a>
			</div>
		</div>
		<div class="rule">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-bg.png" class="cutbg">
			<div class="rulecon">
				<div class="close">
					<div class="closebtn"><img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png"></div>
				</div>
				<div class="rule-title">
					<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/rule-title.png">
				</div>
				<div class="rule-con">
					<p><span>1</span>切瓜分数若达到<i>25000</i>以上，则赠送掷筛子机会<i>2次+礼包</i>一份及继续向前走的机会；若分数达不到<i>5000</i>，则需继续闯关；达到<i>5000分低于25000分</i>，则获得掷筛子机会<i>1次</i>，可选择继续往前走或继续挑战。</p>
					<p><span>2</span>通过此游戏获得的奖品，须在整个游戏界面--奖品中，以<i>获奖编码</i>的形式展现。同时在此页面上展现领奖时间和地点领奖。逾期视为放弃。（礼品暂定）</p>
					<p><span>3</span>说明：如用户出现违规行为（如虚假交易、作弊、恶意套取现金、刷信等），平台将撤销用户的活动参与资格，并有权回收用户已经获得的奖励，必要时追究法律责任。</p>
				</div>
				<div class="rulebtns">
					<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-start.png" class="startbtn">
					<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/rankbtn.png" class="rankbtn">
				</div>
			</div>
		</div>
		<div class="no-prize">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-start.png" class="cut-start">
		</div>
		<div class="no-prizerad">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<div class="no-prizeradcon">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/noprize1.png">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-goon.png" class="goon-btn">
			</div>
		</div>
		<div class="no-prizerad1">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<div class="no-prizeradcon">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/no-prize2.png">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-goon.png" class="goon-btn">
			</div>
		</div>
		<!--获得掷筛子一次-->
		<div class="prize-shai">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<div class="no-prizeradcon">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/one-shai .png">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-goon.png" class="goon-btn">
			</div>
		</div>
		<!--获得掷筛子两次-->
		<div class="prize-shaitwo">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<div class="no-prizeradcon">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/two-shai.png">
				<div class="twoshai-con">
					<p>万万没想到！</p>
					<p>切瓜切中价值<span class="valuep"></span>元的<span class="namep">xxx</span>奖品一份+2次</p>
					<p>掷筛子机会</p>
					<div class="code">
						<p>中奖编码：</p>
						<p class="codee">XXXXXXXXXXXX</p>
					</div>
					<p>兑奖方式可在“我的奖品”中查看</p>
					<p>请幸运的你，在规定时间到指定地点，</p>
					<p>领取你的专属奖品！</p>
					<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/diceadd2.png">
				</div>
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-goon.png" class="goon-btn">
			</div>
		</div>
		<!--奖品领完页面-->
		<div class="prize-over">
			<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-close.png" class="cut-close">
			<div class="no-prizeradcon">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/prize-over.png">
				<img src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/cut-goon.png" class="goon-btn">
			</div>
		</div>
		<div id="fb-root"></div>
		<img id="rotation" src="http://s10.realdtech.com/xws/house-richer/cut-melon/images/rotate.png" />
		<div id="c2canvasdiv" style="display:none;">
			<canvas style="background-image: none;" id="c2canvas" width="320"
				height="480"></canvas>
		</div>

		<script type="text/javascript">
        window.gameLangs = ['en', 'es'];
        window.gameJS = ['/game-fruits/js/jquery-2.0.0.min.js'];
    </script>
		<script type="text/javascript" src='http://s10.realdtech.com/xws/house-richer/cut-melon/js/jquery-2.0.0.min.js'></script>
		<script type="text/javascript" src='http://s10.realdtech.com/xws/house-richer/cut-melon/assets/softgames-1.1.js'></script>
		<script type="text/javascript" src='http://s10.realdtech.com/xws/house-richer/cut-melon/assets/sg.hooks.js'></script>
		<script language=javascript>
		$(".rulebtn").on("click",function(){
			$(".game-home").hide();
			$(".rule").show();
		});
		$(".start").on("click",function(){
			$(".game-home").hide();
			$("#c2canvasdiv").show();
			SG_Hooks.start();
		});
		$(".startbtn").on("click",function(){
			$(".rule").hide();
			$(".game-home").hide();
			$("#c2canvasdiv").show();
			SG_Hooks.start();
		});
		$(".rule .closebtn").on("click",function(){
			$(".rule").hide();
			$("#c2canvasdiv").show();
		});
		$(".prize-shai .cut-close").on("click",function(){
			$(".prize-shai").hide();
		});
		$(".prize-shai .goon-btn").on("click",function(){
			$(".prize-shai").hide();
			$(".game-home").hide();
			$("#c2canvasdiv").show();
			SG_Hooks.start();
		});
		
		
				
		
		
			document.addEventListener("touchmove", function (e) {
					e.preventDefault();
				}, false);
		var mebtnopenurl = '#';
		window.shareData = {
		        "imgUrl": "./img/qlgg.png",
		        "timeLineLink": "./",
		        "tTitle": "切了个瓜-多多智富",
		        "tContent": "是水果忍者的高手吗？水果忍者再出江湖，现在是时候向好友展示你的实力了！"
		};
		
		function submitScore(score){
			if(score <5000){
				//随机出现弹框
				var rand = Math.random()*10;
				if(rand <4){
				    //承认不小心切到炸弹了
					$(".no-prize").show();
					$(".no-prizerad1").hide();
					$(".no-prizerad").hide();
					$(".prize-shai").hide();
					$(".prize-shaitwo").hide();
					$(".prize-over").hide();
					$(".no-prize .cut-close").on("click",function(){
						$(".no-prize").hide();
					});
					$(".no-prize .cut-start").on("click",function(){
						$(".no-prize").hide();
						$(".game-home").hide();
						$("#c2canvasdiv").show();
						$(".prize-over").hide();
						SG_Hooks.start();
					});
				}else if(rand > 3 && rand < 7){
				    //接受现实吧，没有中奖，给抱抱
					$(".no-prize").hide();
					$(".no-prizerad1").hide();
					$(".no-prizerad").show();
					$(".prize-shai").hide();
					$(".prize-shaitwo").hide();
					$(".prize-over").hide();
					$(".no-prizerad .cut-close").on("click",function(){
						$(".no-prizerad").hide();
					});
					$(".no-prizerad .goon-btn").on("click",function(){
						$(".no-prizerad").hide();
						$(".game-home").hide();
						$("#c2canvasdiv").show();
						SG_Hooks.start();
					});
				}else{
					$(".no-prize").hide();
					$(".no-prizerad1").show();
					$(".no-prizerad").hide();
					$(".prize-shai").hide();
					$(".prize-shaitwo").hide();
					$(".prize-over").hide();
					$(".no-prizerad1 .cut-close").on("click",function(){
						$(".no-prizerad1").hide();
					});
					$(".no-prizerad1 .goon-btn").on("click",function(){
						$(".no-prizerad1").hide();
						$(".game-home").hide();
						$("#c2canvasdiv").show();
						SG_Hooks.start();
					});
				}
//				alert("你好厉害！切西瓜切了"+score+"分");
//				dp_share(score);
			}else if(score >4999 && score < 25000){
			    $.ajax({
					url:"award",
					data:{
					    openid:$("#openid").val()
					},
					type:"post",
					success:function () {
                        //中奖了，筛子加1
                        $(".no-prize").hide();
                        $(".no-prizerad1").hide();
                        $(".no-prizerad").hide();
                        $(".prize-shai").show();
                        $(".prize-shaitwo").hide();
                        $(".prize-over").hide();
                        $(".prize-shai .cut-close").on("click",function(){
                            $(".prize-shai").hide();
                        });
                        $(".prize-shai .goon-btn").on("click",function(){
                            $(".prize-shai").hide();
                            $(".game-home").hide();
                            $("#c2canvasdiv").show();
                            SG_Hooks.start();
                        });
                    },
					error:function () {
						alert("网络繁忙");
                    }
				});

			}else if(score >24999){
                $.ajax({
                    url: "fruits",
                    data: {
                        openid:$("#openid").val()
                    },
                    type: "post",
					success:function (data) {
                        if(data.success){
                            $(".valuep").html(data.valuep);
                            $(".namep").html(data.namep);
                            $(".codee").html(data.nop);
                            //中奖+编码+物品
                            $(".no-prize").hide();
                            $(".no-prizerad1").hide();
                            $(".no-prizerad").hide();
                            $(".prize-shai").hide();
                            $(".prize-shaitwo").show();
                            $(".prize-over").hide();
                            $(".prize-shaitwo .cut-close").on("click",function(){
                                $(".prize-shaitwo").hide();
                            });
                            $(".prize-shaitwo .goon-btn").on("click",function(){
                                $(".prize-shaitwo").hide();
                                $(".game-home").hide();
                                $("#c2canvasdiv").show();
                                SG_Hooks.start();
                            });
						}else{
                            //如果奖品领完了
                            $(".no-prize").hide();
                            $(".no-prizerad1").hide();
                            $(".no-prizerad").hide();
                            $(".prize-shai").hide();
                            $(".prize-shaitwo").hide();
                            $(".prize-over").show();
                            $(".prize-over .cut-close").on("click",function(){
                                $(".prize-over").hide();
                            });
                            $(".prize-over .goon-btn").on("click",function(){
                                $(".prize-over").hide();
                                $(".game-home").hide();
                                $("#c2canvasdiv").show();
                                SG_Hooks.start();
                            });
						}

                    },
					error:function () {
						alert("网络繁忙");
                    }
                });

			}
		}
				
		function goHome(){
			window.location=mebtnopenurl;
		}
		function dp_submitScore(a,t){
			dp_share(t);
		}
		
		function dp_share(t){
			document.title = "最新记录！我连续切了" + t + "个水果！你能赢得了我吗？-多多智富";
			document.getElementById("share").style.display="block";
			window.shareData.tTitle = document.title;
		}
		function dp_Ranking(){
//			alert("到更多");
			window.location=mebtnopenurl;
		}

		function showAd(){
		}
		function hideAd(){
		}
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		    
		    WeixinJSBridge.on('menu:share:appmessage', function(argv) {
		        WeixinJSBridge.invoke('sendAppMessage', {
		            "img_url": window.shareData.imgUrl,
		            "link": window.shareData.timeLineLink,
		            "desc": window.shareData.tContent,
		            "title": window.shareData.tTitle
		        }, function(res) {
		        	document.location.href = mebtnopenurl;
		        })
		    });

		    WeixinJSBridge.on('menu:share:timeline', function(argv) {
		        WeixinJSBridge.invoke('shareTimeline', {
		            "img_url": window.shareData.imgUrl,
		            "img_width": "640",
		            "img_height": "640",
		            "link": window.shareData.timeLineLink,
		            "desc": window.shareData.tContent,
		            "title": window.shareData.tTitle
		        }, function(res) {
		        	document.location.href = mebtnopenurl;
		        });
		    });
		}, false);		</script>
		<script type="text/javascript" src='/game-fruits/js/game.js' async="async"></script>

		<div id=share style="display: none">
			<img width=100%
				src="/game-fruits/images/2000"
				style="position: absolute; top: 0; left: 0; display: "
				ontouchstart="document.getElementById('share').style.display='none';">
		</div>

 <div style="display:none">
</div>

	</body>
</html>